﻿<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>
<%@taglib uri= "/WEB-INF/tld/fn.tld" prefix= "fn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>产品与服务</title>
    <link href="${pageContext.request.contextPath }/portal/scripts/layout.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${pageContext.request.contextPath }/util/js/jquery.js"></script>
    
</head>
<body>
  <div id="container">
  
    <div id="mainContent">
      <jsp:include page="./common/top.jsp" flush="true" />
      
      <div class="subcontent">
        
        <div class="subpageLeft">
          <div class="titleshort">
            <div class="titlearrow"></div>
            <div class="titlecaption">产品列表</div>
            <div class="titlemore"></div>
          </div>
          
          <div id="productsTypeDiv">
            <table width="100%" style="margin-top: 10px; margin-left: 10px;">
              <c:if test="${not empty requestScope.producttypeLst }">
              <c:forEach items="${requestScope.producttypeLst }" varStatus="status" var="item">
              <tr style="height: 20px">
                <td>
                  <a href="./products.do?productTypeId=${item.id }">${item.typeName }</a>
                </td>
              </tr>
              </c:forEach>
              </c:if>
            </table>
          </div>
          
        </div>
        
        <div class="subpageRight">
          <div class="titlelong">
            <div class="titlearrow"></div>
            <div class="titlecaption">产品内容列表</div>
            <div class="titlemore"></div>
          </div>
          
          <div>
            
            <div style="height: 200px">
              <c:if test="${not empty requestScope.portalProductsLst }">
                <table width="100%" style="margin-top: 10px; padding-left: 10px">
                  <c:forEach items="${requestScope.portalProductsLst }" varStatus="status" var="item">
                  <tr style="height: 30px">
                    <td>
                      <a href="./products.do?productTypeId=${item.productTypeId }">
                      [${item.typeName }]
                      </a>
                      <a href="./productDetail.do?productTypeId=${item.productTypeId }&productContentId=${item.productContentId}" title="${item.productName }">
                        <c:choose>
                          <c:when test="${fn:length(item.productName) > 40}">
                            <c:out value="${fn:substring(item.productName, 0, 40)}..." />
                          </c:when>
                          <c:otherwise>
                            <c:out value="${item.productName }" />
                          </c:otherwise>
                        </c:choose>
                      </a>
                    </td>
                    <td align="right" style="padding-right: 10px">${item.lastModifyTime }</td>
                  </tr>
                  </c:forEach>
                </table>
              </c:if>
              
            </div>
            
            <div id="bottomPageDiv">
              <jsp:include page="/portal/page/pbody.jsp" flush="true">
                <jsp:param name="totleCnt" value="${requestScope.portalProductForm.totleCnt }" />
                <jsp:param name="currentPage" value="${requestScope.portalProductForm.currentPage }" />
                <jsp:param name="totlePage" value="${requestScope.portalProductForm.totlePage }" />
                <jsp:param name="firPageUrl" value="/products.do?m=allTypeList&productTypeId=${requestScope.portalProductForm.productTypeId }" />
              </jsp:include>
            </div>
            
          </div>
          
        </div>
      </div>
      
      <jsp:include page="./common/bottom2.jsp" />
      
    </div>
  </div>
</body>
</html>
